package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.ExamPaper;
import com.zhijian.medical.entity.vo.request.ExamPaperSearchVo;
import com.zhijian.medical.entity.vo.response.ExamPaperVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamPaperMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ExamPaper record);

    int insertSelective(ExamPaper record);

    ExamPaper selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ExamPaper record);

    int updateByPrimaryKey(ExamPaper record);

    int count(ExamPaperSearchVo examPaperSearchVo);

    List<ExamPaperVo> selectList(ExamPaperSearchVo examPaperSearchVo);

    ExamPaperVo selectVoById(Long id);

    /**
     * 根据人员id与学习id进行查找
     *
     * @param userId
     * @param studyId
     * @return
     */
    ExamPaper selectByUserIdAndStudyId(@Param("userId") Long userId, @Param("studyId") Long studyId);
}